package com.itheima.springboottlias.controller;


import Pojo.PageResult;
import Pojo.Result;
import com.itheima.springboottlias.service.LogOperationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/log")
public class LogOperationController {
    @Autowired
    private LogOperationService logOperationService;
    @GetMapping("/page")
    public Result page(@RequestParam Map<String,String> map){


        PageResult pageResult=logOperationService.page(map);

        return Result.success(pageResult);
    }

}
